#include <iostream>

using namespace std;

float average();

int main() {
    cout << "请输入10个学生成绩:" << endl;
    float aver = average();
    cout << "这是10个学生的平均成绩为" << aver << endl;
}

float average() {
    float a[10], sum = 0.0, average;
    for (int i = 0; i < 10; i++) {
        cin >> a[i];
        sum += a[i];
    }
    average =sum/10.0;
    return average;
}